/**
 * @format
 */

import {AppRegistry} from 'react-native';
import MainPage from './app/src/screens/main/MainPage';
import {name as appName} from './app.json';

import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';

import SelectCityPage from "./app/src/screens/city/SelectCityPage";
import CityManagerPage from "./app/src/screens/city/CityManagerPage";
import Utils from "./app/src/utils/Utils";

const AppNavigator = createStackNavigator({
    Main: {
        screen: MainPage
    },
    SelectCity: {
        screen: SelectCityPage
    },
    CityManager: {
        screen: CityManagerPage
    }
}, {
    initialRouteName: 'Main',
/*    headerTintColor: 'white',
    headerPressColorAndroid: 'rgba(255, 255, 255, 0.4)',
    headerMode: Utils.isAndroid() ? 'screen' : 'float',
    mode: 'card'*/
});

const App = createAppContainer(AppNavigator);

AppRegistry.registerComponent(appName, () => App);
